/*********************************
 * PROPRIETARY/CONFIDENTIAL.  Use of this product is subject to license terms.
 * Copyright (c) 2012 NVision Group, Inc. All rights reserved.
 *
 * HookCallback.java 09.07.2012 12:29:56
 *********************************/
package ru.kruzhki.client.rpc;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * @author AKovalyov
 *
 */
public abstract class HookCallback<V, O> implements AsyncCallback<O> {

    protected AsyncCallback<V> theCallback;

    public HookCallback(AsyncCallback<V> callback) {
        super();
        this.theCallback = callback;
    }

    @Override
    public void onFailure(Throwable caught) {
        theCallback.onFailure(caught);
    }
    
}
